package com.kitty.wrapper;

public class ProxyProcessor implements Processor {
	
	private Processor target;
	public ProxyProcessor(Processor target) {
		this.target = target;
	}

	public void process() {
		System.out.println("in proxy...");
		this.target.process();

	}
	
	public void setProcessor(Processor target) {
		this.target = target;
	}

	public void process(Processor target) {
		this.target = target;
		this.target.process();
	}
}
//构造方法、setter方法、普通方法, 进行参数的传递.
